﻿@{
    ViewBag.Title = "Coupon";
}
@section scripts
{  
    <script src="@Url.Content("~/Scripts/shared/share.js")" type="text/javascript"></script> 
    <script src="@Url.Content("~/Scripts/shared/shown.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/Base/Coupon.js?ver=GetDate()")" type="text/javascript"></script>        
}
   <div class="mini-splitter" style="width:100%;height:100%;">
    <div size="270" showcollapseButton="true">
        @Html.Partial("~/Views/Modular/ToolbarTree.cshtml")
        <div class="mini-fit">
           <ul id="tree1" class="mini-tree" style="width:100%;" expandOnLoad="0"
              textField="FName" idField="FItemID" parentField="FParentID" showTreeIcon="true" resultAsTree="false">        
           </ul>
        </div>
    </div>
       
    <div showCollapseButton="true">
        @Html.Partial("~/Views/Modular/ToolBarBase.cshtml")
        @Html.Partial("~/Views/Modular/SearchInfo.cshtml")
        <div class="mini-fit" >
            <div id="datagrid1" class="mini-datagrid" style="width:100%;height:100%;" pageSize="15"
                    borderStyle="border:1;" url="GetCouponList"
                    allowCellSelect="true" allowCellEdit="true"showColumnsMenu="true"fitColumns="false"  
                    onrowdblclick="modify"  sortMode="client">
                <div property="columns">
                    <div type="checkcolumn" >选行</div>
                    <div type="indexcolumn" width="40" headerAlign="center" >序号</div>
                    <div field="FTypeName" name="FTypeName" width="100" headeralign="center" allowsort="true">礼券类型</div>
                    <div field="FNumber" name="FNumber" width="100" headeralign="center" allowsort="true">礼券编码</div>
                    <div field="FName" name="FName" width="150" headeralign="center" allowsort="true">礼券名称</div>
                    <div field="FValue" name="FValue" width="80" headeralign="center"align="right" allowsort="true" numberFormat="#,0.00">礼券面额</div>
                    <div field="FMinValue" name="FMinValue" width="80" headeralign="center"  align="right" allowsort="true" numberFormat="#,0.00">最低消费</div>
                    <div field="FMaxValue" name="FMaxValue" width="80" headeralign="center"  align="right" allowsort="true" numberFormat="#,0.00">最高消费</div>
                    <div field="FCreateTime" name="FCreateTime" width="120" headeralign="center" allowsort="true">创建日期</div>
                    <div field="FMaxCount" name="FMaxCount" width="80" headeralign="center"align="right" allowsort="true" numberFormat="#,0.00">发行量</div>
                    <div field="FUsedCount" name="FUsedCount" width="80" headeralign="center"align="right" allowsort="true" numberFormat="#,0.00">已领取</div>
                    <div field="FActiveStartDate" name="FActiveStartDate" width="120" headeralign="center" allowsort="true">领券时间开始</div>
                    <div field="FActiveEndDate" name="FActiveEndDate" width="120" headeralign="center" allowsort="true">领券时间结束</div>
                </div>
            </div>
        </div>
    </div>        
</div>

